package com.eshop.we.accountdetail.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 账户明细
 * </p>
 *
 * @author anonymity
 * @since 2018-07-06
 */
@TableName("account_detail")
public class AccountDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 账户表id
     */
    @TableField("account_id")
    private Integer accountId;
    /**
     * 类型(10:收入,20:支出)
     */
    private Integer type;
    /**
     * 来源(10:租书收入,20:售书收入,30:充值收入,40:租书支出,50:购书支出,60:体现支出)
     */
    private Integer source;
    /**
     * 金额
     */
    private Integer money;
    /**
     * 创建时间
     */
    private Integer ctime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getCtime() {
        return ctime;
    }

    public void setCtime(Integer ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "AccountDetail{" +
        "id=" + id +
        ", accountId=" + accountId +
        ", type=" + type +
        ", source=" + source +
        ", money=" + money +
        ", ctime=" + ctime +
        "}";
    }
}
